package com.example.demo.answers.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 答案表
 * </p>
 *
 * @author zhongz
 * @since 2019-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TAnswers implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("ID")
    private String id;

    /**
     * 考题ID
     */
    @TableField("QUESTION_ID")
    private String questionId;

    /**
     * 答案内容
     */
    @TableField("ANS_CONTENT")
    private String ansContent;

    /**
     * _id
     * 做为导入小程序云数据库的唯一标识
     */
    @TableField(exist = false)
    private String _id;

    public void setId(String id) {
        this.id = id;
        this._id = id;
    }
}
